<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>The Best Recipes</title>
	<link href="view/css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<body>
	<!-- wrapper -->
	<div id="wrapper">
	
		<!-- header and logo -->
		<?php
		
			require_once("templates/header.php");
		
		?>
		<!-- end header and logo -->
	
		<!-- page -->
		<div id="page">
			<!-- content -->
			<div id="content">
			
			
				<!-- post -->
				<div class="post">
					<h2 class="title">Recipes By <?php echo $category["name"]?> :</h2>
					<div class="entry">
						<ul>
							<?php
								
								if($recipesMini) {
									foreach ($recipesMini as $recipeMini){
							?>
								<li>
									<a href="index.php?page=viewrecipe&recipeid=<?php echo $recipeMini["recipeId"] ?>">
										<?php
											echo $recipeMini["title"];
										?>
									</a>
								</li>
							<?php
									}// end foreach
								}// end if
							?>
						</ul>
					</div>
				</div>
				<!-- end post -->
				
				
				
			</div>
			<!-- end content -->
			
			<!-- sidebar -->
			<?php
		
				require_once("templates/sidebar.php");
		
			?>
			<!-- end sidebar -->
		
			<div style="clear: both;">&nbsp;</div>
			
		</div>
		<!-- end page -->
	
		<!-- footer -->
		<?php
	
			require_once("templates/footer.php");
	
		?>
		<!-- end footer -->
	
	</div>
	<!-- end wrapper -->
</body>
</html>
